import java.util.Scanner;
import static IsPalindrome.Test.isPalindrome;
import static LastStrlenght.Test.lastLenght;

public class Main {
    public static void main(String[] args) {
        //第一个只出现一次的字符
        Scanner sca = new Scanner(System.in);
        String s = sca.nextLine();
        int i = Test1.firstUniqChar(s);
        if(i != -1) {
            System.out.println("第一个只出现一次的字符的下标为："+ i);
        }else {
            System.out.println("没有第一个只出现一次的字符");
        }
    }
    public static void main2(String[] args) {
        //字符串最后一个单词长度
        Scanner sca = new Scanner(System.in);
        String s = sca.nextLine();
        int len = lastLenght(s);
        System.out.println("字符串最后一个单词长度为："+ len);
    }
    public static void main1(String[] args) {
        //判断是否是回文串
        Scanner sca = new Scanner(System.in);
        String s = sca.nextLine();
        boolean a = isPalindrome(s);
        if(a == true) {
            System.out.println("是回文串");
        }else {
            System.out.println("不是回文串");
        }
    }
}
